﻿<%@ Page Title="Actualizar Programa" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="wfrmPrograma.aspx.cs" Inherits="proyGestionActivos.Gestion.wfrmActualizarPrograma" %>

<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxTabControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPager" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxClasses" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        #principal
        {
            width: 900px;
            margin: 0 auto;
        }
        .tabs
        {
            width: 90%;
            margin: 0 auto;
        }
        .fieldset_datos
        {
            width: 100%;
        }
        .campos_vacios
        {
            width: 7em;
        }
        .labels
        {
            width: 125px;
        }
        .tabs fieldset
        {
            margin-top: 1.5em;
        }
        .tabs fieldset #fieldset_content
        {
            padding-left: 7em;
        }
        .tabs fieldset #fieldset_content1
        {
            padding-left: 7em;
        }
        .tabs fieldset .fieldset_filas
        {
            padding: .5em 0;
        }
        .filas
        {
            padding: .5em 3em;
        }
        .tabs .titulo
        {
            width: 100%;
            text-align: center;
            font-size: 24px;
            font-weight: bold;
            margin-bottom: 1em;
            margin-top: .5em;
        }
        .pad
        {
            padding: 0.2cm 1cm 0.2cm 1cm;
            text-align: left;
        }
        
        .p
        {
            padding: 0.2cm 2cm 0.2cm 2cm;
            text-align: left;
        }
        .style1
        {
            width: 134px;
        }
        .style2
        {
            width: 102px;
        }
    </style>
    <script type="text/javascript">
        function cargarDescripciones() {
            btnAccion.DoClick();
        }
    </script>
    <script type="text/javascript">
        function soloDocumento(e) {
            key = e.keyCode || e.which;
            tecla = String.fromCharCode(key).toLowerCase();
            letras = "abcdefghijklmnopqrstuvwxyz0123456789";
            especiales = [8, 127];
            tecla_especial = false
            for (var i in especiales) {
                if (key == especiales[i]) {
                    tecla_especial = true;
                    break;
                }
            }

            if (letras.indexOf(tecla) == -1 && !tecla_especial) {
                return false;
            }
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="id_transfiter" runat="server">
    <div id="principal">
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <div class="tabs" style="background-color: White">
                    <div class="titulo">
                        ACTUALIZAR PROGRAMA</div>
                    <fieldset>
                        <legend></legend>
                        <div id="fieldset_content">
                            <table style="width: 97%">
                                <tr>
                                    <td class="labels fieldset_filas">
                                        Codigo
                                    </td>
                                    <td class="style1">
                                        <dx:ASPxTextBox ID="txtCodigoPrograma" runat="server" Width="170px" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                                            CssPostfix="BlackGlass" 
                                            SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" 
                                            ClientEnabled="False">
                                            <ValidationSettings>
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                                <ErrorFrameStyle ImageSpacing="4px">
                                                    <ErrorTextPaddings PaddingLeft="4px" />
                                                </ErrorFrameStyle>
                                            </ValidationSettings>
                                        </dx:ASPxTextBox>
                                    </td>
                                    <td class="style2">
                                    </td>
                                    <td class="campos_vacios">
                                    </td>
                                </tr>
                                <tr>
                                    <td class="labels fieldset_filas">
                                        Programa
                                    </td>
                                    <td class="fieldset_filas" style="width: 134px">
                                        <dx:ASPxTextBox ID="txtPrograma" runat="server" Width="170px" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                                            CssPostfix="BlackGlass" 
                                            SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" MaxLength="20">
                                            <ValidationSettings SetFocusOnError="True">
                                                <ErrorFrameStyle ImageSpacing="4px">
                                                    <ErrorTextPaddings PaddingLeft="4px" />
                                                </ErrorFrameStyle>
                                                <RequiredField ErrorText="Obligatorio" IsRequired="True" />
                                            </ValidationSettings>
                                        </dx:ASPxTextBox>
                                    </td>
                                    <td class="style2">
                                        Descripción
                                    </td>
                                    <td class="campos_vacios">
                                        <dx:ASPxTextBox ID="txtDescripcion" runat="server" Width="170px" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                                            CssPostfix="BlackGlass" 
                                            SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" MaxLength="400">
                                            <ValidationSettings SetFocusOnError="True">
                                                <ErrorFrameStyle ImageSpacing="4px">
                                                    <ErrorTextPaddings PaddingLeft="4px" />
                                                </ErrorFrameStyle>
                                                <RequiredField ErrorText="Obligatorio" IsRequired="True" />
                                            </ValidationSettings>
                                        </dx:ASPxTextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="labels fieldset_filas">
                                        Fabricante
                                    </td>
                                    <td class="fieldset_filas" style="width: 134px">
                                        <dx:ASPxTextBox ID="txtFabricante" runat="server" Width="170px" MaxLength="20" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                                            CssPostfix="BlackGlass" 
                                            SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css">
                                            <ValidationSettings SetFocusOnError="True">
                                                <ErrorFrameStyle ImageSpacing="4px">
                                                    <ErrorTextPaddings PaddingLeft="4px" />
                                                </ErrorFrameStyle>
                                                <RequiredField ErrorText="Obligatorio" IsRequired="True" />
                                            </ValidationSettings>
                                        </dx:ASPxTextBox>
                                    </td>
                                    <td class="style2">
                                        Estado
                                    </td>
                                    <td class="campos_vacios">
                                        <dx:ASPxComboBox ID="cboEstado" runat="server" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                                            CssPostfix="BlackGlass" 
                                            SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" 
                                            SelectedIndex="0">
                                            <Items>
                                                <dx:ListEditItem Text="Activo" Value="1" Selected="True" />
                                                <dx:ListEditItem Text="Inactivo" Value="0" />
                                            </Items>
                                            <LoadingPanelImage Url="~/App_Themes/BlackGlass/Editors/Loading.gif">
                                            </LoadingPanelImage>
                                            <ButtonStyle Width="11px">
                                            </ButtonStyle>
                                            <ValidationSettings ErrorText="Error has occurred" setfocusonerror="True">
                                                <ErrorFrameStyle ImageSpacing="4px">
                                                    <ErrorTextPaddings PaddingLeft="4px" />
                                                    <ErrorTextPaddings PaddingLeft="4px" />
                                                </ErrorFrameStyle>
                                                <RequiredField ErrorText="Obligatorio" IsRequired="True" />
                                            </ValidationSettings>
                                        </dx:ASPxComboBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="labels fieldset_filas">
                                        <dx:ASPxCheckBox ID="chkConcurrente" runat="server" Text="Concurrente" 
                                            CheckState="Unchecked" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" 
                                            CssPostfix="BlackGlass" 
                                            SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css">
                                            <ValidationSettings ErrorText="Error has ocurredd">
                                            </ValidationSettings>
                                        </dx:ASPxCheckBox>
                                    </td>
                                    <td class="fieldset_filas" style="width: 134px">
                                    </td>
                                    <td class="style2">
                                    </td>
                                    <td class="campos_vacios">
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="3">
                                        &nbsp;
                                    </td>
                                    <td class="campos_vacios">
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="6">
                                        <table style="width:100%">
                                            <tr>
                                                <td align="center" style="width:25%">
                                                    <dx:ASPxButton ID="btnAceptarP" runat="server" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                                                        CssPostfix="BlackGlass" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css"
                                                        Text="Guardar" onclick="btnAceptarP_Click">
                                                    </dx:ASPxButton>
                                                </td>
                                                <td align="center" style="width:25%">
                                                    <dx:ASPxButton ID="btnModficarP" runat="server" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                                                        CssPostfix="BlackGlass" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css"
                                                        Text="Modificar" onclick="btnModficarP_Click">
                                                    </dx:ASPxButton>
                                                </td>
                                                <td align="center" style="width:25%">
                                                    <dx:ASPxButton ID="btnEliminarP" runat="server" 
                                                        CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                                        onclick="btnEliminarP_Click" 
                                                        SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Text="Eliminar" 
                                                        Visible="False">
                                                    </dx:ASPxButton>
                                                    <dx:ASPxButton ID="btnCancelarP" runat="server" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                                                        CssPostfix="BlackGlass" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css"
                                                        Text="Cancelar" CausesValidation="False" onclick="btnCancelarP_Click">
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="center">
                                                    &nbsp;</td>
                                                <td align="center">
                                                    &nbsp;</td>
                                                <td align="center">
                                                    &nbsp;</td>
                                            </tr>
                                            <tr>
                                                <td align="center" colspan="3">
                                                    <dx:ASPxGridView ID="grdPrincipal" runat="server" AutoGenerateColumns="False" 
                                                        CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                                                        Width="80%" EnableCallBacks="False" 
                                                        onfocusedrowchanged="grdPrincipal_FocusedRowChanged" 
                                                        KeyFieldName="CodigoPrograma">
                                                        <Columns>
                                                            <dx:GridViewDataTextColumn FieldName="CodigoPrograma" VisibleIndex="0">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn FieldName="NombrePrograma" VisibleIndex="1">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn FieldName="Fabricante" VisibleIndex="2">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn FieldName="Descripcion" VisibleIndex="3">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn FieldName="Estado" VisibleIndex="4" Visible="False">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn FieldName="Concurrente" VisibleIndex="5" 
                                                                Visible="False">
                                                            </dx:GridViewDataTextColumn>
                                                        </Columns>
                                                        <SettingsBehavior AllowFocusedRow="True" AllowSort="False" 
                                                            ProcessFocusedRowChangedOnServer="True" />
                                                        <SettingsBehavior AllowFocusedRow="True" AllowSort="False" 
                                                            ProcessFocusedRowChangedOnServer="True" />
                                                        <SettingsPager PageSize="10000" Visible="False">
                                                        </SettingsPager>
                                                        <Settings ShowVerticalScrollBar="True" />
                                                        <Settings ShowVerticalScrollBar="True" />
                                                        <Images SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css">
                                                            <LoadingPanelOnStatusBar Url="~/App_Themes/BlackGlass/GridView/gvLoadingOnStatusBar.gif">
                                                            </LoadingPanelOnStatusBar>
                                                            <LoadingPanel Url="~/App_Themes/BlackGlass/GridView/Loading.gif">
                                                            </LoadingPanel>
                                                        </Images>
                                                        <ImagesFilterControl>
                                                            <LoadingPanel Url="~/App_Themes/BlackGlass/Editors/Loading.gif">
                                                            </LoadingPanel>
                                                        </ImagesFilterControl>
                                                        <Styles CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" 
                                                            CssPostfix="BlackGlass">
                                                            <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                                            </Header>
                                                        </Styles>
                                                        <StylesEditors>
                                                            <CalendarHeader Spacing="1px">
                                                            </CalendarHeader>
                                                            <ProgressBar Height="25px">
                                                            </ProgressBar>
                                                        </StylesEditors>
                                                    </dx:ASPxGridView>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </fieldset>
                    <table width="100%">
                        <tr>
                            <td align="right" class="filas">
                                &nbsp;
                            </td>
                            <td align="left" class="filas">
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                </div>
                <dx:ASPxPopupControl ID="popupOK" runat="server" ClientInstanceName="popupOK" Width="300px"
                    Modal="True" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass"
                    SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" AllowDragging="True"
                    CloseAction="CloseButton" PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter"
                    ShowPageScrollbarWhenModal="True" HeaderText="Mensaje">
                    <LoadingPanelImage Url="~/App_Themes/BlackGlass/Web/Loading.gif">
                    </LoadingPanelImage>
                    <ContentStyle HorizontalAlign="Left" VerticalAlign="Top">
                    </ContentStyle>
                    <HeaderStyle>
                        <Paddings PaddingLeft="15px" PaddingBottom="6px" PaddingRight="6px" PaddingTop="3px" />
                    </HeaderStyle>
                    <ContentCollection>
                        <dx:PopupControlContentControl ID="PopupControlContentControl1" runat="server" SupportsDisabledAttribute="True">
                            <dx:ASPxPanel ID="ASPxPanel2" runat="server" Width="300px">
                                <PanelCollection>
                                    <dx:PanelContent ID="PanelContent1" runat="server" SupportsDisabledAttribute="True">
                                        <table align="center" style="width: 100%">
                                            <tr>
                                                <td colspan="2" align="center">
                                                    <dx:ASPxLabel ID="lblmensOk" runat="server">
                                                    </dx:ASPxLabel>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                </td>
                                                <td>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="center" colspan="2">
                                                    <dx:ASPxButton ID="btnAceptarOk" runat="server" Text="Aceptar" Width="100px" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                                                        CssPostfix="BlackGlass" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css"
                                                        CausesValidation="False"  AutoPostBack="False">
                                                        <ClientSideEvents Click="function(s, e) {
	popupOK.Hide();
}" />
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </dx:PanelContent>
                                </PanelCollection>
                            </dx:ASPxPanel>
                        </dx:PopupControlContentControl>
                    </ContentCollection>
                </dx:ASPxPopupControl>
                <dx:ASPxPopupControl ID="popupresponse" runat="server" ClientInstanceName="popupresponse"
                    Width="300px" Modal="True" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                    CssPostfix="BlackGlass" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css"
                    AllowDragging="True" CloseAction="CloseButton" PopupHorizontalAlign="WindowCenter"
                    PopupVerticalAlign="WindowCenter" ShowPageScrollbarWhenModal="True" HeaderText="Mensaje">
                    <LoadingPanelImage Url="~/App_Themes/BlackGlass/Web/Loading.gif">
                    </LoadingPanelImage>
                    <ContentStyle HorizontalAlign="Left" VerticalAlign="Top">
                    </ContentStyle>
                    <HeaderStyle>
                        <Paddings PaddingLeft="15px" PaddingBottom="6px" PaddingRight="6px" PaddingTop="3px" />
                    </HeaderStyle>
                    <ContentCollection>
                        <dx:PopupControlContentControl ID="PopupControlContentControl2" runat="server" SupportsDisabledAttribute="True">
                            <dx:ASPxPanel ID="ASPxPanel1" runat="server" Width="300px">
                                <PanelCollection>
                                    <dx:PanelContent ID="PanelContent2" runat="server" SupportsDisabledAttribute="True">
                                        <table align="center">
                                            <tr>
                                                <td colspan="2" align="center">
                                                    <dx:ASPxLabel ID="lblresponse" runat="server" Text="">
                                                    </dx:ASPxLabel>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                </td>
                                                <td>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="center">
                                                    <dx:ASPxButton ID="btnresponse" runat="server" Text="Aceptar" Width="100px" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                                                        CssPostfix="BlackGlass" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css"
                                                        CausesValidation="False" AutoPostBack="False" OnClick="btnresponse_Click">
                                                        <ClientSideEvents Click="function(s, e) {
	popupresponse.Hide();
}" />
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </dx:PanelContent>
                                </PanelCollection>
                            </dx:ASPxPanel>
                        </dx:PopupControlContentControl>
                    </ContentCollection>
                </dx:ASPxPopupControl>
                <dx:ASPxPopupControl ID="popupConfirmacionT" runat="server" ClientInstanceName="popupConfirmacionT"
                    Width="300px" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass"
                    SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" AllowDragging="True"
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" ShowPageScrollbarWhenModal="True"
                    HeaderText="Confirmación">
                    <LoadingPanelImage Url="~/App_Themes/BlackGlass/Web/Loading.gif">
                    </LoadingPanelImage>
                    <ContentStyle HorizontalAlign="Left" VerticalAlign="Top">
                    </ContentStyle>
                    <HeaderStyle>
                        <Paddings PaddingLeft="15px" PaddingBottom="6px" PaddingRight="6px" PaddingTop="3px" />
                    </HeaderStyle>
                    <ContentCollection>
                        <dx:PopupControlContentControl ID="PopupControlContentControl3" runat="server" SupportsDisabledAttribute="True">
                            <dx:ASPxPanel ID="ASPxPanel3" runat="server" Width="300px">
                                <PanelCollection>
                                    <dx:PanelContent ID="PanelContent3" runat="server" SupportsDisabledAttribute="True">
                                        <table align="center" width="100%">
                                            <tr>
                                                <td colspan="2" align="center">
                                                    <dx:ASPxLabel ID="lblmenConfir" runat="server">
                                                    </dx:ASPxLabel>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                </td>
                                                <td>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="center">
                                                    <dx:ASPxButton ID="btnAceptar" runat="server" Text="Aceptar" Width="100px" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                                                        CssPostfix="BlackGlass" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css"
                                                        CausesValidation="False" OnClick="btnAceptar_Click">
                                                        <ClientSideEvents Click="function(s, e) {
	popupConfirmacionT.Hide();
}" />
                                                    </dx:ASPxButton>
                                                </td>
                                                <td align="center">
                                                    <dx:ASPxButton ID="ASPxButton1" runat="server" Text="Cancelar" Width="100px" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                                                        CssPostfix="BlackGlass" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css"
                                                        CausesValidation="False">
                                                        <ClientSideEvents Click="function(s, e) {
	popupConfirmacionT.Hide();
}" />
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </dx:PanelContent>
                                </PanelCollection>
                            </dx:ASPxPanel>
                        </dx:PopupControlContentControl>
                    </ContentCollection>
                </dx:ASPxPopupControl>
                <dx:ASPxPopupControl ID="popupConfirmarAB" runat="server" Width="300px" ClientInstanceName="popupConfirmarAB"
                    Modal="True" PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter"
                    CloseAction="CloseButton" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                    CssPostfix="BlackGlass" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css"
                    ShowPageScrollbarWhenModal="True" HeaderText="Confirmación" AllowDragging="True">
                    <LoadingPanelImage Url="~/App_Themes/BlackGlass/Web/Loading.gif">
                    </LoadingPanelImage>
                    <ContentStyle HorizontalAlign="Left" VerticalAlign="Top">
                    </ContentStyle>
                    <HeaderStyle>
                        <Paddings PaddingLeft="15px" PaddingBottom="6px" PaddingRight="6px" PaddingTop="3px" />
                    <paddings paddingbottom="6px" paddingleft="15px" paddingright="6px" 
                        paddingtop="3px" />
                    <paddings paddingbottom="6px" paddingleft="15px" paddingright="6px" 
                        paddingtop="3px" />
                    </HeaderStyle>
                    <ContentCollection>
                        <dx:PopupControlContentControl ID="PopupControlContentControl5" runat="server" SupportsDisabledAttribute="True">
                            <dx:ASPxPanel ID="ASPxPanel5" runat="server" Width="300px">
                                <PanelCollection>
                                    <dx:PanelContent ID="PanelContent5" runat="server" SupportsDisabledAttribute="True">
                                        <asp:UpdatePanel ID="updatepopup" runat="server">
                                            <ContentTemplate>
                                                <table align="center">
                                                    <tr>
                                                        <td colspan="2" align="center">
                                                            <dx:ASPxLabel ID="lblmensajeconfi" runat="server">
                                                            </dx:ASPxLabel>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td align="center" colspan="2">
                                                            &nbsp;
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <dx:ASPxButton ID="btnAceptarB" runat="server" Text="Aceptar" Width="100px" CausesValidation="False"
                                                                 CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                                                                CssPostfix="BlackGlass" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css">
                                                                <ClientSideEvents Click="function(s, e) {
	popupConfirmarAB.Hide();
}" />
                                                            </dx:ASPxButton>
                                                        </td>
                                                        <td>
                                                            <dx:ASPxButton ID="ASPxButton4" runat="server" Text="Cancelar" Width="100px" CausesValidation="False"
                                                                CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass"
                                                                SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" AutoPostBack="False">
                                                                <ClientSideEvents Click="function(s, e) {
	popupConfirmarAB.Hide();
}" />
                                                            </dx:ASPxButton>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </ContentTemplate>
                                        </asp:UpdatePanel>
                                    </dx:PanelContent>
                                </PanelCollection>
                            </dx:ASPxPanel>
                        </dx:PopupControlContentControl>
                    </ContentCollection>
                </dx:ASPxPopupControl>
                <br />
                <dx:ASPxPopupControl ID="popupAgregarBenef" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                    CssPostfix="Office2010Blue" EnableHotTrack="False" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                    Width="500px" AllowDragging="True" ClientInstanceName="popupAgregarBenef" CloseAction="CloseButton"
                    HeaderText="Agregar Beneficiario" Modal="True" PopupHorizontalAlign="WindowCenter"
                    PopupVerticalAlign="WindowCenter" ShowPageScrollbarWhenModal="True">
                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                    </LoadingPanelImage>
                    <HeaderStyle>
                        <Paddings PaddingLeft="7px" />
                    </HeaderStyle>
                    <LoadingPanelStyle ImageSpacing="5px">
                    </LoadingPanelStyle>
                    <ContentCollection>
                        <dx:PopupControlContentControl ID="PopupControlContentControl4" runat="server" SupportsDisabledAttribute="True">
                            <table align="center" width="500px">
                                <tr>
                                    <td width="450px">
                                        <fieldset style="width: 400px">
                                            <legend>Beneficiario</legend>
                                            <table width="450px" align="center">
                                                <tr>
                                                    <td>
                                                        <dx:ASPxLabel ID="ASPxLabel6" runat="server" CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css"
                                                            CssPostfix="Office2003Blue" Text="Cuenta Beneficiario :">
                                                        </dx:ASPxLabel>
                                                    </td>
                                                    <td style="text-align: left" align="left">
                                                        <dx:ASPxTextBox ID="txtCuentaBen" runat="server" CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css"
                                                            CssPostfix="Office2003Blue" SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css"
                                                            Width="200px" MaxLength="50" onkeypress="return soloDocumento(event)">
                                                            <ValidationSettings SetFocusOnError="True" ValidationGroup="ADCNET">
                                                                <RequiredField ErrorText="Obligatorio" IsRequired="True" />
                                                            </ValidationSettings>
                                                        </dx:ASPxTextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <dx:ASPxLabel ID="ASPxLabel14" runat="server" CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css"
                                                            CssPostfix="Office2003Blue" Text="Nombre Beneficiario  :">
                                                        </dx:ASPxLabel>
                                                    </td>
                                                    <td style="text-align: left" align="left">
                                                        <dx:ASPxTextBox ID="txtNombreBen" runat="server" CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css"
                                                            CssPostfix="Office2003Blue" SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css"
                                                            Width="200px" MaxLength="50">
                                                            <ValidationSettings SetFocusOnError="True" ValidationGroup="ADCNET">
                                                                <RequiredField ErrorText="Obligatorio" IsRequired="True" />
                                                            </ValidationSettings>
                                                        </dx:ASPxTextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="text-align: left">
                                                        <dx:ASPxLabel ID="ASPxLabel15" runat="server" CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css"
                                                            CssPostfix="Office2003Blue" Text="Dirección Beneficiario :" Width="180px">
                                                        </dx:ASPxLabel>
                                                    </td>
                                                    <td align="left">
                                                        <dx:ASPxTextBox ID="txtDireccionBen" runat="server" CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css"
                                                            CssPostfix="Office2003Blue" SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css"
                                                            Width="250px" MaxLength="50">
                                                            <ValidationSettings SetFocusOnError="True" ValidationGroup="ADCNET">
                                                                <RequiredField ErrorText="Obligatorio" IsRequired="True" />
                                                            </ValidationSettings>
                                                        </dx:ASPxTextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                    </td>
                                                    <td>
                                                    </td>
                                                </tr>
                                            </table>
                                        </fieldset>
                                    </td>
                                </tr>
                            </table>
                            <table width="500px" align="center">
                                <tr>
                                    <td class="pad" style="width: 33%">
                                        <dx:ASPxButton ID="btnAgregarB" runat="server" CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css"
                                            CssPostfix="Office2003Blue" SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css"
                                            Text="Agregar" Width="100px"  ValidationGroup="ADCNET">
                                        </dx:ASPxButton>
                                    </td>
                                    <td class="pad" style="width: 33%">
                                        <dx:ASPxButton ID="btnModificarB" runat="server" CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css"
                                            CssPostfix="Office2003Blue" SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css"
                                            Text="Modificar"  Width="100px" ValidationGroup="ADCNET">
                                        </dx:ASPxButton>
                                    </td>
                                    <td class="pad" style="width: 33%">
                                        <dx:ASPxButton ID="btnEliminarB" runat="server" CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css"
                                            CssPostfix="Office2003Blue" SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css"
                                            Text="Eliminar" Width="100px" ValidationGroup="ADCNET">
                                        </dx:ASPxButton>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="3">
                                        <dx:ASPxGridView ID="grdBeneficiario" runat="server" AutoGenerateColumns="False"
                                            EnableCallBacks="False" Width="100%" CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css"
                                            CssPostfix="Office2003Blue" KeyFieldName="cuentaBeneficiario">
                                            <Columns>
                                                <dx:GridViewDataTextColumn Caption="Cuenta Beneficiario" FieldName="cuentaBeneficiario"
                                                    VisibleIndex="0">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn Caption="Nombre Beneficiario" FieldName="nomBeneficiario"
                                                    VisibleIndex="1">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn Caption="Dirección Beneficiario" FieldName="dirBeneficiario"
                                                    VisibleIndex="2">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn Caption="IDC_CLIENTE" FieldName="idcCliente" VisibleIndex="3"
                                                    Visible="False">
                                                </dx:GridViewDataTextColumn>
                                            </Columns>
                                            <SettingsBehavior ProcessFocusedRowChangedOnServer="True" AllowFocusedRow="True"
                                                AllowSort="False" />
                                            <SettingsBehavior ProcessFocusedRowChangedOnServer="True" />
                                            <SettingsBehavior ProcessFocusedRowChangedOnServer="True" />
                                            <SettingsBehavior ProcessFocusedRowChangedOnServer="True" />
                                            <SettingsPager Visible="False">
                                            </SettingsPager>
                                            <Settings ShowVerticalScrollBar="True" />
                                            <Settings ShowVerticalScrollBar="True" />
                                            <Settings ShowVerticalScrollBar="True" />
                                            <Settings ShowVerticalScrollBar="True" />
                                            <Images SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css">
                                                <LoadingPanelOnStatusBar Url="~/App_Themes/Office2003Blue/GridView/gvLoadingOnStatusBar.gif">
                                                </LoadingPanelOnStatusBar>
                                                <LoadingPanel Url="~/App_Themes/Office2003Blue/GridView/Loading.gif">
                                                </LoadingPanel>
                                            </Images>
                                            <ImagesFilterControl>
                                                <LoadingPanel Url="~/App_Themes/Office2003Blue/Editors/Loading.gif">
                                                </LoadingPanel>
                                            </ImagesFilterControl>
                                            <Styles CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" CssPostfix="Office2003Blue">
                                                <LoadingPanel ImageSpacing="10px">
                                                </LoadingPanel>
                                                <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                                </Header>
                                            </Styles>
                                            <StylesEditors>
                                                <ProgressBar Height="25px">
                                                </ProgressBar>
                                            </StylesEditors>
                                        </dx:ASPxGridView>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 33%">
                                    </td>
                                    <td class="p" style="width: 33%">
                                        <dx:ASPxButton ID="btnCerrar" runat="server" CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css"
                                            CssPostfix="Office2003Blue" SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css"
                                            Text="Cerrar" Width="100px" CausesValidation="False" AutoPostBack="False">
                                            <ClientSideEvents Click="function(s, e) {
	popupAgregarBenef.Hide();
}" />
                                        </dx:ASPxButton>
                                    </td>
                                    <td style="width: 33%">
                                    </td>
                                </tr>
                            </table>
                            <br />
                            <br />
                            <br />
                        </dx:PopupControlContentControl>
                    </ContentCollection>
                </dx:ASPxPopupControl>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>
